package com.stienne.formatPerf.factoryImpl;

import org.springframework.stereotype.Component;

import com.stienne.formatPerf.entity.Client;
import com.stienne.formatPerf.factory.IClientFactory;




/**
*
* @author stienne
* fabrique qui implemente l'interface IClientFactory
* elle cree un objet Client
*/

@Component(value = "clientFactory")
public class ClientFactory implements IClientFactory{

	public Client createClient() {
		return new Client();
	}

	public void setAll(Client client, String firstName, String lastName) {
		client.setFirstName(firstName);
		client.setLastName(lastName);
	}

}
